/*
 * Copyright (C) 2019-2020 Alibaba Group Holding Limited
 */
#ifndef _APP_PWM_H_
#define _APP_PWM_H_

int8_t app_pwm_init(uint32_t pwm_idx, pin_name_e pwm_pin, pin_func_e pin_func, uint8_t ch);
int8_t app_pwm_deinit(void);
int8_t app_pwm_start(uint8_t ch);
int8_t app_pwm_stop(uint8_t ch);
int8_t app_pwm_config(uint8_t ch, uint32_t period, uint32_t duty);

#endif